package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.ModuleMapper;
import com.richest.api.service.IModuleService;
import com.richest.bean.ModuleBean;

/**
 * 模块信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class ModuleServiceImpl implements IModuleService {

	@Autowired
	private ModuleMapper mapper;

	@Override
	public Integer moduleAdd(ModuleBean bean) {
		return mapper.moduleAdd(bean);
	}

	@Override
	public Integer moduleUpdate(ModuleBean bean) {
		return mapper.moduleUpdate(bean);
	}

	@Override
	public Integer moduleDelete(Long id) {
		return mapper.moduleDelete(id);
	}

	@Override
	public ModuleBean moduleSelectOne(Long id) {
		return mapper.moduleSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> moduleSelectMap(Map<String, Object> params) {
		return mapper.moduleSelectMap(params);
	}
}
